@extends('user.layouts.layout')
@section('title', '修改密码')
@section('content')
    <div class="mx-auto md:w-1/3 w-full bg-white rounded-lg p-6">
        <form action="{{ route('user.setting') }}" method="POST">
            {{ csrf_field() }}
            {{ method_field('PUT') }}
            <div class="block">
                <span class="text-gray-700 text-sm">密码</span>
                <input type="text" name="password" placeholder="如需修改密码请输入新密码" class="form-input mt-1 block w-full rounded-md focus:border-indigo-600 @error('password')border-red-600 @enderror">
                @error('password')
                <p class="mt-2 text-sm text-red-600">{{ $message }}</p>
                @enderror
            </div>
            <div class="mt-6">
                <button class="py-3 px-4 text-center bg-indigo-600 rounded-md w-full text-white text-sm hover:bg-indigo-500">
                    提交
                </button>
            </div>
        </form>
    </div>
@endsection
